package com.neusoft.resturant.controller;
import com.neusoft.resturant.common.exception.BizException;
import com.neusoft.resturant.common.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Daniel
 * @date: 2023-11-16 08:41
 **/
@RestController
@RequestMapping("/api/exception")
public class ExceptionController {
    @GetMapping("/test")
    public R exception() {
        throw new BizException(404, "没找到");
    }
}
